<script setup lang="ts">
import {getDownloadUrl} from "@/api/file";

const props = defineProps(['fileId', 'size'])
</script>

<template>
  <el-avatar :size="size" :src="fileId ? getDownloadUrl(fileId) : '/svg/default_avatar.svg'"  style="background-color: white;z-index: 1"><el-image src="/svg/default_avatar.svg"></el-image></el-avatar>
</template>

<style scoped>

</style>